import { createBrowserRouter } from 'react-router-dom'
import App from '../App'
import Home from '../views/home/Home'
import About from '../views/about/About'

const router = createBrowserRouter([
  {
    path: '/',
    element: <App />,
    children: [
      {
        path: 'home',
        element: <Home />
      },
      {
        path: 'about',
        element: <About />
      }
    ]
  }
])

export default router